extends BaseRoom
const Balloon = preload("res://src/dialogue/balloon.tscn")

func perform(room_node:Node2D):
	Events.room_perform.emit(room_node)
	Globals.current_room = room_node
	var resource = load("res://src/dialogue/dialogue_message.dialogue")
	var balloon = Balloon.instantiate()
	room_node.get_tree().root.add_child(balloon)
	balloon.start(resource,"this_is_a_node_title")
	balloon.connect("tree_exited",_on_tree_exited_signal)
	
	
func _on_tree_exited_signal():
	Events.goback_main_map.emit()
